//
//  MoviesTableViewCell.m
//  DouBan
//
//  Created by lanou3g on 15/8/8.
//  Copyright (c) 2015年 xuzheng. All rights reserved.
//

#import "MoviesTableViewCell.h"

@implementation MoviesTableViewCell


//重写
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setCellView];
    }
    return self;
}

- (void)setCellView{
    self.photoImage=[[UIImageView alloc]initWithFrame: CGRectMake(5, 10, 80, 80)];
    self.photoImage.backgroundColor=[UIColor redColor];
   
    [self.contentView addSubview:self.photoImage];
    
    self.nameLabel=[[UILabel alloc]initWithFrame:CGRectMake(100, 10, 200, 80)];
    //self.nameLabel.text=;
    //self.backgroundColor=[UIColor greenColor];
    [self.contentView addSubview:self.nameLabel];
    
    self.movIDLabel=[[UILabel alloc]init];
    [self.contentView addSubview:self.movIDLabel];
    
}







- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
